package org.example.file.serialize;

import java.io.Serializable;
import java.util.Arrays;

public class Person implements Serializable {

    private String name;
    private String gender;
    private int age;
    private String shoes;
    private boolean clothes;
    private byte[] money;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getGender() {
        return gender;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getShoes() {
        return shoes;
    }

    public void setShoes(String shoes) {
        this.shoes = shoes;
    }

    public boolean isClothes() {
        return clothes;
    }

    public void setClothes(boolean clothes) {
        this.clothes = clothes;
    }

    public byte[] getMoney() {
        return money;
    }

    public void setMoney(byte[] money) {
        this.money = money;
    }

    @Override
    public String toString() {
        return "Person{" + "name='" + name + '\'' + ", gender='" + gender + '\'' + ", age=" + age + ", shoes='" + shoes
            + '\'' + ", clothes=" + clothes + ", money=" + Arrays.toString(money) + '}';
    }
}
